package com.kingwang.training.designpattern.singleton;

import java.time.LocalDateTime;

public class SingletonLazy {
    private static LocalDateTime CHECK_TIME;

    private static Object object;

    public static synchronized LocalDateTime getCheckTime() {
        if (CHECK_TIME == null) {
            CHECK_TIME = LocalDateTime.now();
        }

        return CHECK_TIME;
    }
}
